/*
 * Copyright (c) 2018. czmc All Rights Reserved.
 * Author: czmc
 * Email: zxc6355533@163.com
 * Encoding: UTF-8
 */

package top.stime21.framework.mvp

import android.app.Dialog
import android.content.Context
import top.stime21.framework.utils.ResourceUtil

/**
 * Author: czmc  Email: zxc6355533@163.com
 * Version:	1.0  Date:2018/3/1
 */

/*
 * Copyright (c) 2018. czmc All Rights Reserved.
 * Author: czmc
 * Email: zxc6355533@163.com
 * Encoding: UTF-8
 */

class LoadingDialog @JvmOverloads constructor(context: Context, theme: Int = ResourceUtil.getStyleId(context,
        "StyleDialogNoTitleBlack")) : Dialog(context, theme) {

    init {

        setContentView(ResourceUtil.getLayoutId(context, "loading_data_layout"))

        val window = this.window
        window!!.setWindowAnimations(ResourceUtil.getStyleId(context,
                "DialogAnimation"))
    }

}